// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

#include "CoreMinimal.h"
#include "PaperZDAnimInstance.h"
#include "RulePaperZDAnimInstance.generated.h"

/**
 * 
 */
UCLASS()
class TF_20240717_API URulePaperZDAnimInstance : public UPaperZDAnimInstance
{
	GENERATED_BODY()

public:
	UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="AnimAttribute")
	bool bDeath;
	UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="AnimAttribute")
	bool bAttack;
	UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="AnimAttribute")
	float Speed;
	UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="AnimAttribute")
	FVector2D CurrentDirection;

private:
	UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="AnimAttribute", meta=(AllowPrivateAccess=true))
	class ARuleCharacterZD* OwnerCharacter;
	
public:
	URulePaperZDAnimInstance();
	
	virtual void OnInit_Implementation() override;

	virtual void Tick(float DeltaTime) override;

	void SetDirection(const FVector& Direction);
};
